﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    enum NPC
   {
        铁匠,
        商人,
        任务
    }
    abstract class NPCfather
    {
        private string name;
        private NPC npc;
        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public NPC Npc
        {
            get { return this.npc; }
            set { this.npc = value; }
        }
        public NPCfather(string name, NPC npc)
        {
            this.name = name;
            this.npc = npc;
        }
        public abstract void Speak();
       
    }
}
